/*
 * @Description:
 * @Author: william
 * @Date: 2025-02-25 18:31:07
 * @LastEditors: william
 * @LastEditTime: 2025-03-24 13:56:49
 */

const prefix = '/hotel/order'
const prefix2 = '/hotel/room'

// =====================  订房管理 =====================
// -------------------  查询订单列表 -------------------
export const apiHotelOrderList = data => g_https.post(`${prefix}/list`, data)

// -------------------  新增订单 -------------------
export const apiHotelOrderCreate = data =>
  g_https.post(`${prefix}/create`, data)

// -------------------  查询订单详情 -------------------
export const apiHotelOrderDetail = data =>
  g_https.post(`${prefix}/detail`, data)

// -------------------  修改订单 -------------------
export const apiHotelOrderUpdate = data =>
  g_https.post(`${prefix}/update`, data)

// -------------------  删除订单 -------------------
export const apiHotelOrderDelete = data =>
  g_https.post(`${prefix}/delete`, data)

// -------------------  确认订单 -------------------
export const apiHotelOrderConfirm = data =>
  g_https.post(`${prefix}/confirm`, data)

// -------------------  取消订单 -------------------
export const apiHotelOrderCancel = data =>
  g_https.post(`${prefix}/cancel`, data)

// =====================  客房管理 =====================
// -------------------  查询客房列表 -------------------
export const apiHotelRoomList = data => g_https.post(`${prefix2}/list`, data)

// -------------------  新增客房 -------------------
export const apiHotelRoomCreate = data =>
  g_https.post(`${prefix2}/create`, data)

// -------------------  查询客房详情 -------------------
export const apiHotelRoomDetail = data => g_https.get(`${prefix2}/detail`, data)

// -------------------  修改客房 -------------------
export const apiHotelRoomUpdate = data =>
  g_https.post(`${prefix2}/update`, data)

// -------------------  删除客房 -------------------
export const apiHotelRoomDelete = data =>
  g_https.post(`${prefix2}/delete`, data)
